package org.blog.entity.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CommentsParam extends PageParam {

    //    评论编号
    private Integer commentsId;
    //    评论文章的用户的姓名
    private Integer userName;
    //    被评论文章的title
    private Integer articleTitle;
    //    评论的内容
    private String commentsContent;
    //    发表评论的时间
    private Date commentsTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
